package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Author yichao
 * Time  2018/3/30 10:34
 * Dest  购物车
 */
public class ShopCarBean  implements Parcelable{

        private List<FailureBean> failure;
        private List<NofailureBean> nofailure;

        public List<FailureBean> getFailure() {
            return failure;
        }

        public void setFailure(List<FailureBean> failure) {
            this.failure = failure;
        }

        public List<NofailureBean> getNofailure() {
            return nofailure;
        }
        public void setNofailure(List<NofailureBean> nofailure) {
            this.nofailure = nofailure;
        }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this.failure);
        dest.writeList(this.nofailure);
    }

    public ShopCarBean() {
    }

    protected ShopCarBean(Parcel in) {
        this.failure = new ArrayList<FailureBean>();
        in.readList(this.failure, FailureBean.class.getClassLoader());
        this.nofailure = new ArrayList<NofailureBean>();
        in.readList(this.nofailure, NofailureBean.class.getClassLoader());
    }

    public static final Creator<ShopCarBean> CREATOR = new Creator<ShopCarBean>() {
        @Override
        public ShopCarBean createFromParcel(Parcel source) {
            return new ShopCarBean(source);
        }

        @Override
        public ShopCarBean[] newArray(int size) {
            return new ShopCarBean[size];
        }
    };
}

